// 注册路由器  到底使用的是普通的路由引入方式还是路由懒加载的方式
import Login from '../views/Login.vue';
import Register from '../views/Register.vue'

const routes = [{
        path: '/login',
        name: 'login',
        component: Login
    },
    {
        path: '/register',
        name: 'register',
        component: Register
    },
    {
        path: '/hascard',
        name: 'hascard',
        component: () => import('../views/HasCard.vue')
    }, {
        path: '/nocard',
        name: 'nocard',
        component: () => import('../views/NoCard.vue')
    },
    {
        path: '/lifaxueyuan',
        name: 'lifaxueyuan',
        component: () => import('../views/LiFaXueYuan.vue')
    },
    {
        path: '/kaxiangguanli',
        name: 'kaxiangguanli',
        component: () => import('../views/KaXiangGuanLi.vue')
    },
    {
        path: '/dianwu',
        name: 'dianwu',
        component: () => import('../views/DianWu.vue')
    },
    {
        path: '/caiwu',
        name: 'caiwu',
        component: () => import('../views/CaiWu.vue')
    },
    {
        path: '/tanchuang',
        name: 'tanchuang',
        component: () => import('../views/TanChuang.vue')
    },
    {
        path: '/',
        redirect: '/tanchuang'
    }

]
export default routes